Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_EH_CONVANG

EOS_EH_CONVANG

This function converts angles between three units: decimal degrees, radians, and packed degrees-minutes-seconds. In the degrees-minutes-seconds unit, an angle is expressed as an integral number of degrees and minutes and a float point value of seconds packed as a single double as follows: DDDMMMSSS.SS.

Syntax

Result = EOS_EH_CONVANG(inAngle, code)

Return Value

Returns angle in desired units.

Arguments

inAngle

Input angle (float).

code

Conversion code (long). Allowable values are:

Keywords

None

Examples

To convert 27.5 degrees to packed format:

inAng = 27.5

outAng = EOS_EH_CONVANG(inAng, 3)

outAng will contain the value 27030000.00.

Version History

 

5.2

Introduced